package test.beanTest;

import bean.park.view.ParkViewBean;
import bean.park.view.ParkViewDataBean;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ParkViewBeanTest {

    @Test
    public void setCode() {
        ParkViewBean p =new ParkViewBean();
        p.setCode(1);
        assertEquals(1,p.getCode());

    }

    @Test
    public void setMessage() {
        ParkViewBean p =new ParkViewBean();
        p.setMessage("111");
        assertEquals("111",p.getMessage());

    }

    @Test
    public void setData(ParkViewDataBean data) {
        ParkViewBean p =new ParkViewBean();
        ParkViewDataBean t =new ParkViewDataBean();
        p.setData(t);
        assertEquals(p.getData(),p.getData());
    }

    @Test
    public void queryParkView() {
        ParkViewBean bean = new ParkViewBean();
        bean.queryParkView("park_1");
    }
}